package com.athuiju.fenxiaoback.entity.vo;

import com.athuiju.fenxiaoback.entity.PmsSkuSaleParamValue;
import com.athuiju.fenxiaoback.entity.PmsSpuGenericParamValue;
import com.athuiju.fenxiaoback.entity.TbSku;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
public class FrontGoodVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "spu id")
    private String spuid;

    @ApiModelProperty(value = "商品图片")
    private String spuImage;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "子标题")
    private String subTitle;

    @ApiModelProperty(value = "1级类目id")
    private Long cid1;

    @ApiModelProperty(value = "2级类目id")
    private Long cid2;

    @ApiModelProperty(value = "3级类目id")
    private Long cid3;

    @ApiModelProperty(value = "商品所属品牌id")
    private Long brandId;

    @ApiModelProperty(value = "是否上架，0下架，1上架")
    private Boolean saleable;

    @ApiModelProperty(value = "是否有效，0已删除，1有效")
    private Boolean valid;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;


    @ApiModelProperty(value = "销售属性集合")
    private List<PmsSkuSaleParamValue> specialSpecList;

    @ApiModelProperty(value = "商品参数")
    private List<PmsSpuGenericParamValue> genericSpecList;

    @ApiModelProperty(value = "商品详情")
    private String description;

    @ApiModelProperty(value = "商品卖点")
    private String sellpoint;

    @ApiModelProperty(value = "已售件数量")
    private Integer soldout;

    @ApiModelProperty(value = "包装清单")
    private String packingList;

    @ApiModelProperty(value = "售后服务")
    private String afterService;


    List<TbSku> skus;

    @ApiModelProperty(value = "sku销售属性集合")
    Map<String, Set<String>> skuSaleParams;


    @ApiModelProperty(value = "根据用户选择，方便找到对应的skuid")
    Map<String, Map<String,String>>  findSkuIdInfoVoMap;

}
